package com.example.shop.modules.manage.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.shop.persistence.entity.Goods;

import java.util.Map;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author jason
 * @since 2019-12-16
 */
public interface IGoodsAdminService extends IService<Goods> {
    // 查询
    Map selectGoodsInfoAll(Integer id);

    // 分页查询
    IPage<Goods> selectGoodsList(Page<Goods> page, QueryWrapper<Goods> ew);

    //删除 关联表删除
    void deleteGoods(String[] ids);
}
